package com.zch.jh.service.mapper;


import com.zch.jh.domain.*;
import com.zch.jh.service.dto.ReceiveAddrDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity {@link ReceiveAddr} and its DTO {@link ReceiveAddrDTO}.
 */
@Mapper(componentModel = "spring", uses = {})
public interface ReceiveAddrMapper extends EntityMapper<ReceiveAddrDTO, ReceiveAddr> {



    default ReceiveAddr fromId(Long id) {
        if (id == null) {
            return null;
        }
        ReceiveAddr receiveAddr = new ReceiveAddr();
        receiveAddr.setId(id);
        return receiveAddr;
    }
}
